package com.hgdp.medicalexamination.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hgdp.medicalexamination.entity.Fmale;
import com.hgdp.medicalexamination.mapper.FmaleMapper;
import com.hgdp.medicalexamination.service.FmaleService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.AllArgsConstructor;

/**
 * @param 婚前医学检查表(女性)信息
 * @author hgdp
 * @date 2020-07-29 15:19:30
 */

@Service
@AllArgsConstructor
public class FmaleServiceImpl extends ServiceImpl<FmaleMapper, Fmale> implements FmaleService {
	
	@Override
	public IPage<Fmale> queryPage(Page page,Fmale fmale) {
		IPage<Fmale> pages =baseMapper.selectPage(page,Wrappers.query(fmale));
		page.setTotal(baseMapper.selectCount(Wrappers.query(fmale)));
		return pages;
	}


}